import request from '@/request'
import type { ApiResponse } from '@/common/requestType'
import type { UserData } from '@/common/user/user'
// 手机验证码登录api
export const loginPhoneCode = (
  phone: string,
  code: string
): Promise<ApiResponse<UserData>> => {
  return request({
    url: '/user/phonelogin',
    method: 'POST',
    data: {
      phone,
      code
    }
  })
}
